package com.yami.shop.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yami.shop.bean.model.LuckUserProduct;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface LuckUserProductMapper extends BaseMapper<LuckUserProduct> {


    public List<Map<String,Object>> getAllLuckPerson();

    public LuckUserProduct selectByUid(String uid);

    LuckUserProduct getLuckUserProd(LuckUserProduct luckUserProduct);

    int getWinningTimes(LuckUserProduct luckUserProduct);

    int getAllLuckTime(@Param("userId") String userId,@Param("shopId")  Long shopId);

    int getAllWinningTime(@Param("userId")String userId,@Param("shopId")Long shopId);

    int getcurrentDayLuckTime(LuckUserProduct luckUserProduct);

    int getdayWinningTime(LuckUserProduct luckUserProduct);

}
